package com.grantheath.erebus.controller.initializationCommands
{
	import com.grantheath.erebus.model.interfaces.IErebusPageNode;

	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	/**
	 * @author grantheath
	 */
	public class ErebusInitializePageCommand extends SimpleCommand implements ICommand 
	{
		override public function execute(notification : INotification) : void
		{
			var pageNode : IErebusPageNode = notification.getBody() as IErebusPageNode;
			
			trace("initializing page: " + pageNode);
			pageNode.page.initializePage(pageNode);
		}
	}
}
